//
//  DownloadImageOperation.h
//  TodayFirstNews
//
//  Created by 向祖华 on 16/3/3.
//  Copyright © 2016年 向祖华. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class  DownloadImageOperation;
@protocol DownloadImageOperationDelegate <NSObject>
/**
 *  加载图片的代理方法
 *
 *  @param iamge     下载的图片
 *  @param operation 操作者
 */
-(void)getImage:(UIImage*)image operation:(DownloadImageOperation*)operation imageTag:(NSInteger)imageTag;

@end
@interface DownloadImageOperation : NSOperation
@property(nonatomic,strong)NSString*url;//图片网址
@property(nonatomic,strong)NSIndexPath * indexPath;//图片位置
@property(nonatomic,assign)NSInteger imageTage;//图片排名
@property(nonatomic,strong)id<DownloadImageOperationDelegate>delegate;//代理属性
@end
